﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.FIM
{
    [Table("FimMasExpenseRate"), DataContract]
    public class MasExpenseRate
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DataMember]
        public int ExpRateId { get; set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public string Descr { get; set; }

        [DataMember]
        public Nullable<int> BgExpId { get; set; }

        [DataMember]
        public Nullable<int> BgSourceId { get; set; }

        [DataMember]
        public Nullable<double> AmountMax { get; set; }


        [DataMember]
        public string RecordStatus { get; set; }

        [DataMember]
        public Nullable<int> CreatedBy { get; set; }

        [DataMember]
        public Nullable<DateTime> CreatedWhen { get; set; }

        [DataMember]
        public Nullable<int> UpdatedBy { get; set; }

        [DataMember]
        public Nullable<DateTime> UpdatedWhen { get; set; }


        [DataMember]
        public virtual BGM.MasBudgetExpense MasBudgetExpense { get; set; }

        [DataMember]
        public virtual BGM.MasBudgetSource MasBudgetSource { get; set; }
    }
}
